package main.Q1701_1800;

public class Q1731_1740 {
    public static void main(String[] args) {
        System.out.println("Question1731：");
        System.out.println("Question1732：");
        System.out.println("Question1733：");
        System.out.println("Question1734：解码异或后的排列");
        System.out.println("Question1735：");
        System.out.println("Question1736：");
        System.out.println("Question1737：");
        System.out.println("Question1738：");
        System.out.println("Question1739：");
        System.out.println("Question1740：");
    }
}

class Question1734{
    public int[] decode(int[] encoded) {
        int n = encoded.length + 1;
        int total = 0;
        for (int i = 1; i <= n; i++) {
            total ^= i;
        }
        int temp = 0;
        for (int i = 1; i < n - 1; i += 2) {
            temp ^= encoded[i];
        }
        int[] result = new int[n];
        result[0] = total ^ temp;
        for (int i = 0; i < n - 1; i++) {
            result[i + 1] = result[i] ^ encoded[i];
        }
        return result;
    }
}